package com.efuture.chapterfour

/* @Description:Kotlin语言初始化陷进3
 * @Auther: zhaoshanshan
 * @Date: 2022/03/06/11:47 下午
 */
class Demo75(_info:String) {
    private val info = _info
    val content = getContentInfo()
    //private val info = _info//代码写在此行 一定会崩溃 NullPointerException异常 必修将此行代码写在方法调用前
    private fun getContentInfo():String=info

}

fun main() {
    println(Demo75("zhaoshanshan").content.length)
}